<template>
  <Table
    stripe
    border
    ref="table"
    :data="table.data"
    :height="table.height"
    :loading="working.search"
    :columns="table.columns"
    :row-class-name="table.row.render"
    @on-selection-change="p=>{table.selection = p;table.selectRowCount = p.length}"
  />
</template>

<script>
export default {
  props: ["table", "working"],
  methods: {
    export(options) {
      this.$refs.table.exportCsv(options);
    },
  },
};
</script>
